# 指定java8
FROM hub.c.163.com/library/java:8
#设置镜像对外暴露端口
EXPOSE 8080
# 镜像的目录
VOLUME /tmp
# 指定复制jar到镜像内为app.jar
ADD target/docker-spring-boot-web-1.0.jar app.jar
# 启动jar
ENTRYPOINT ["java","-jar","/app.jar"]